home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Add-Ons
/
After Dark
/
Refractor 1.0
/
Project Info
next >
Wrap
Text File
|
1995-11-07
|
2KB
|
45 lines
Refractor 1.0
©1995 Steven J. Bushell
Refractor is an After Dark™ module that creates the illusion of
floating, refractive objects on your screen.
PROGRAMMER NOTES
Refractor is numerically intensive, making use of sin, cos,
sqrt, fabs, and acos. As such it requires the best hardware it can
get, and code to take advantage of the hardware.
Refractor contains separate code built with three different
CodeWarrior 7 projects to handle 68k, 68k w/FPU, and PowerPC.
Refractor.µ.68k builds the complete module. The code resources built
by the two other projects are added as resources to this project.
Refractor.µ.FPU builds the portion of the module that is optimized
for a 68k Mac with a floating-point coprocessor.
Refractor.µ.ppc builds the portion of the module that runs native
on Power Macintoshes.
The two 68k projects are built for 68000 processors, but have 68020
optimizations turned on for all of the computationally intensive
operations. Refractor is not allowed to run on 68000 processors,
but the module must still be built for 68000 processors so that it
can put up an error message on these machines and quit gracefully.
The module is always executed as a plain 68k code resource. At
startup it examines its environment and loads one of the two
additional code modules if a floating-point coprocessor or a PowerPC
processor is present. The 68k code releases the extra code resources
when all processing is completed.
CREDITS
Many thanks to my unwitting beta testers:
Diane Natale, Tim Rodgers, and Rob Winchester.
Steve Bushell
python@world.std.com